<html>
	<head>
        <title>remember the milk</title>
        <link href="css/rtm-on-air.css" rel="stylesheet" type="text/css"/>
        
        <!-- Uncomment the following line to add introspection.  When running the application hit F12 to bring up the introspector -->
        <!-- <script type="text/javascript" src="js/AIRIntrospector.js"></script> -->
        
        <!-- Uncomment the following line to use the AIR source viewer -->
        <!-- <script type="text/javascript" src="js/AIRSourceViewer.js"></script> -->
        
        <!-- Uncomment the following line to use the AIR Localizer -->
        <!-- <script type="text/javascript" src="js/AIRLocalizer.js"></script> -->
        
        <!-- Uncomment the following line to use the AIR Menu Builder -->
        <!-- <script type="text/javascript" src="js/AIRMenuBuilder.js"></script> -->
        
        <script type="text/javascript" src="js/AIRAliases.js"></script>
				
        <script type="text/javascript" src="js/AIRUpdater-1.0.js"></script>
        
				<script type="text/javascript" src="js/WindowControl.js"></script>
				
        <script type="text/javascript">
			
			function openInBrowser(url) {
				air.navigateToURL( new air.URLRequest(url)); 
			}
			
			function initialize(){
				AIRUpdater.init();
				
				var topBar = document.getElementById("header");
				topBar.addEventListener("mousedown",onMove,true);
				var bottomBar = document.getElementById("footer");
				bottomBar.addEventListener("mousedown",onResize,true);
/*
 		var bottomBar = document.getElementById("bottomDragBar");
		bottomBar.addEventListener("mousedown",onMove,true);
		var resizeGripper = document.getElementById("resizeGripper");
		resizeGripper.addEventListener("mousedown",onResize,true);
				
		maxButton = document.getElementById("maximize");
		restoreButton = document.getElementById("restore");
	*/	
				nativeWindow.addEventListener(air.NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGE, 
									  onDisplayStateChange);
		
		}
	
        </script>
	</head>

    <body onLoad="initialize()">
        <div id="header">
        <div id="topDragBar">
				<img src="icons/rtm_slogo.png"/>
				</div>
  			</div>
				
				<div id="update-available-dialog">
					<h4>A new version of RTM On Air is available!</h4>
					<div id="release-notes"></div>
					<div id="update-application">Update Now</div>
					<div id="cancel-update">Update Later</div>
				</div>
        
        <div id="content">
				<iframe src="http://www.rememberthemilk.com/services/modules/googleig/">
				<!-- iGoogle Gadget: http://www.rememberthemilk.com/services/modules/googleig/ -->
				<!-- Netvibes version: http://www.rememberthemilk.com/services/modules/netvibes/ -->
				<!-- iPhone version (Safari 3 only?): http://i.rememberthemilk.com/ -->
				<!-- Generic mobile version: http://m.rememberthemilk.com/ -->
				</iframe>
        </div>
        
				<div id="footer">
				<div id="bottomBar">
				<a href="#" onclick="openInBrowser('http://www.rememberthemilk.com/')"><img src="icons/rtm_logo_24.png"/></a>
				</div>
				</div>
    </body>
</html>